@import '~@/style/base.less';

@color_active: #3B3B3B;

.spec_head {
  flex: 0 0 auto;
  display: flex;
  padding: 40px 24px;
  .pic {
    flex: 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 1px solid #f1f8ff;
    margin-right: 24px;
    object-fit: cover;
  }
  .productName {
    font-size: 30px;
    margin: 0;
    color: #242930;
    max-width: 450px;
  }
  .price {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: @color_price;
    margin-top: 50px;
  }
  .selected {
    font-size: 24px;
    color: @color_subtext;
    margin: 0;
  }
}

.num_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 32px;
  font-size: 30px;
  i {
    font-size: 24px;
    color: #999999;
    padding-left: 20px;
  }
}

.label {
  display: block;
  font-size: 30px;
  margin: 0 0 24px;
}
.spec_list {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  flex-flow: row wrap;
  li {
    flex: 0 0 auto;
    min-width: 148px;
    position: relative;
    .frow(center,center, column) ;
    color: @color_text;
    text-align: center;
    font-size: 28px;
    padding: 0 20px;
    margin: 0 28px 32px 0;
    list-style: none;
    color: @color_subtext;
    .tasteName {
      line-height: 56px;
      border-radius: 8px;
      border: 2px solid #eee;
      min-width: 148px;
      display: inline-block;
    }
    &.active {
      .tasteName {
        border: 2px solid @color_active;
        background: @color_active;
        color: #ffffff;
      }
      .spec_price {
        color: @color_text;
      }
    
    }
    .spec_price {
      font-size: 24px;
      margin-top: 28px;
    }
    .badge {
      position: absolute;
      border-radius: 50%;
      display: inline-block;
      position: absolute;
      height: 30px;
      top: -10px;
      right: 0;
      background: @color_theme;
      color: #fff;
      padding: 0 10px;
      font-size: 14px;
      line-height: 33px;
    }
  }
}